<template>
    <div style="width: 100vw;height : 100vh;overflow: hidden;display: flex">
        <div style="flex: 1">
            <el-image style="width: 100%;height: 100%" fit="cover"
                      src="https://ts1.tc.mm.bing.net/th/id/R-C.5ed390811dbe19b24b6f92d6c0e1c509?rik=oMwdIAL5dxceow&riu=http%3a%2f%2fwww.louisch.com%2fwp-content%2fuploads%2f2012%2f01%2fIMG_9005.jpg&ehk=ivIKDVvH18Nrfz%2fXEizZNhhk39Iv2GqqbXpDVwAxI64%3d&risl=&pid=ImgRaw&r=0"></el-image>
        </div>
        <div class="welcome-title">
            <div style="font-size: 30px;font-weight: bold">欢迎来到学习平台</div>
            <div style="font-size: 18px;margin-top: 10px">在这里可以学习到编程相关知识，如何搭建网站。</div>
        </div>
        <div style="width: 700px;background-color: whitesmoke;z-index: 1">
            <router-view v-slot="{ Component }">
                <transition name="el-fade-in-linear" mode="out-in">
                    <component :is="Component" style="height: 100%"/>
                </transition>
            </router-view>
        </div>
    </div>
</template>

<script setup>

</script>

<style scoped>
    .welcome-title{
        position: absolute;
        bottom: 60px;
        left: 60px;
        color: whitesmoke;
        text-shadow: 0 0 10px black;
    }
</style>